<?php // $this->load->view('layouts/_flash');
//var_dump($this->session->userdata('userid'));
?>

<div class="ui-corner-all contentContainer" style="background-color: #fff;">

<div style="position: relative;">

<div style="float: left;">

<div class="ui-corner-top side_menu" style="width: 700px;">Change Password</div>
<div style="border:1px  solid #286bcc;">
	<div>&nbsp;</div>
	<div>
	<?if(isset($system_message))echo $system_message;?>
	<?php

			$old_password 	= set_value('old_password')   == FALSE ? NULL  : set_value('old_password') ;
			$new_password 	= set_value('new_password')   == FALSE ? NULL  : set_value('new_password') ;
			$c_new_password = set_value('c_new_password') == FALSE ? NULL  : set_value('c_new_password') ;
			$hidden = array('id'=>$this->session->userdata('userid'));
	?>
	
		<?echo validation_errors();?>

		<?php 
		echo form_open('president/changepass/'.$this->session->userdata('userid'));
		?>

		<fieldset>
			<div style="position: relative;">
				<div style="float: left; width: 200px; line-height: 3;"><span class="span"> Old Password</span></div>
				<div style="float: left; line-height: 3;">
				<span class="span">
					<?php
					$opt = 'class="ui-corner-all" style="border:#ccc 2px solid;" maxlength="255"';
					echo form_password('old_password', $old_password, $opt);
					?>
				</span>
				</div>
				<div class="clearfloat"></div>
				
				<div style="float: left; width: 200px; line-height: 3;"><span class="span"> New Password</span></div>
				<div style="float: left; line-height: 3;">
				<span class="span">
					<?php
					$opt = 'class="ui-corner-all" style="border:#ccc 2px solid;" maxlength="255"';
					echo form_password('new_password', $new_password, $opt);
					?>
				</span>
				</div>
				<div class="clearfloat"></div>
				
				<div style="float: left; width: 200px; line-height: 3;"><span class="span">Confirm New Password</span></div>
				<div style="float: left; line-height: 3;">
				<span class="span">
					<?php
					$opt = 'class="ui-corner-all" style="border:#ccc 2px solid;" maxlength="255"';
					echo form_password('c_new_password', $c_new_password, $opt);
					?>
				</span>
				</div>
				<div class="clearfloat"></div>
				
				
				<div style="float: left; width: 200px; line-height: 3;"><span class="span"> &nbsp; </span></div>
				<div style="float: left; line-height: 3;">
				<span class="span">
					<?php
					$opt4 = 'class="ui-corner-all submit"';
					echo form_hidden($hidden);
					echo form_submit('', 'update', $opt4);
					
					?>
				</span>
				</div>
				<div class="clearfloat"></div>
			</div>
		</fieldset>

		<?php
		echo form_close();
		?>
	
	</div>
	<div class="clearfloat"></div>
</div>

<div>&nbsp;</div>
</div>
</div>
<div class="clearfloat"></div>
</div>

</div>